<?php
include_once("db.inc");
$Name = $_REQUEST["Name"];
$Price = $_REQUEST["Price"];
$Manufacture = $_REQUEST["Manufacture"];
$Period = $_REQUEST["Period"];
$Image = $_REQUEST["Image"];
$Username = $_REQUEST["Username"];
$sql = "insert into sanpham(tensanpham,gia,hangsanxuat,baohanh,hinhanh,doanhnghiep) values('$Name',$Price,'$Manufacture',$Period,'$Image','$Username')"; 
mysql_query($sql);
$result = mysql_affected_rows();
$return = "";
if($result > 0)
	$return = $return."1";
echo $return;
?>